﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace GiveGraphModel
{
    public class Service : Resource
    {
        public virtual ICollection<ServiceCategory> Categories { get; set; }
        public virtual ICollection<SpecialtyArea> SpecialtyAreas { get; set; }
        public virtual ICollection<String> TypeOfVolunteering { get; set; }
        public virtual ICollection<Schedule> Schedule { get; set; }
    }

    public sealed class ServiceConfiguration : EntityTypeConfiguration<Service>
    {
        public ServiceConfiguration()
        {
            HasMany(p => p.Categories).WithMany();
            HasMany(p => p.Schedule).WithMany();
            HasMany(p => p.SpecialtyAreas).WithMany();
           

        }
    }
}
